import Layout from '@/layout/index.vue'
import { markRaw } from 'vue'

export default [
  {
    path: '/system',
    component: markRaw(Layout),
    redirect: '/system',
    name: 'System',
    authority: '账户管理',
    meta: {
      root: 'system',
      title: '账户管理'
    },
    children: [
      {
        path: 'staff',
        component: () => import('@/views/system/staff.vue'),
        name: 'StaffList',
        meta: {
          title: '员工管理'
        }
      },
      {
        path: 'post',
        component: () => import('@/views/system/post.vue'),
        name: 'PostList',
        meta: {
          title: '岗位管理'
        }
      },
      {
        path: 'dictionary',
        component: () => import('@/views/system/dictionary/index.vue'),
        name: 'Dictionary',
        meta: {
          title: '字典表'
        }
      },
      {
        path: 'authority',
        component: () => import('@/views/system/authority/index.vue'),
        name: 'SystemAuthority',
        meta: {
          title: '系统资源项'
        }
      }
    ]
  }
]
